﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LeanAndon.Services
{
    using Library.Domain;

    public static class Assembler
    {
        public static IList<ProjectDto> AssembleProjects(IList<Project> projects)
        {
            var dtos = new List<ProjectDto>();

            foreach (var project in projects)
            {
                dtos.Add(Assembler.AssembleProject(project));
            }

            return dtos;
        }

        private static ProjectDto AssembleProject(Project project)
        {
            return new ProjectDto { Id = project.Id, Name = project.Name };
        }
    }
}
